package com.miao.edu.oauth.service.impl;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

/**
 * @author niemiao
 * @date 2022/6/6
 **/
public class FutureTaskDemo {

    public static void main(String[] args) throws ExecutionException, InterruptedException {
        FutureTask futureTask = new FutureTask<Runnable>(() -> {
            return throwException();
        });
        futureTask.get();
    }


}
